<template>
  <el-button-group class="ct-tool-list">
    <el-tooltip class="item" effect="dark" content="添加图层" placement="top">
      <el-button size="mini" type="primary" @click="add_layer" icon="el-icon-circle-plus-outline"></el-button>
    </el-tooltip>
    <el-tooltip class="item" effect="dark" content="绑定图层" placement="top">
      <el-button size="mini" type="primary" icon="el-icon-lock"></el-button>
    </el-tooltip>
  </el-button-group>
</template>
<script type="text/javascript">
import { mapState, mapMutations, bootstrap } from 'vuecx'
export default {
  components: {
    //empty
  },
  props: {
    value: [Array, Object]
  },
  data() {
    return {

    }
  },
  /**
   * 计算属性
   * @type {Object}
   */
  computed: {

  },
  /**
   * 数据监听
   * @type {Object}
   */
  watch: {

  },
  /**
   * 页面加载执行
   * @return {[type]} [description]
   */
  mounted() {

  },
  /**
   * 页面方法
   * @type {Object}
   */
  methods: {
    ...mapMutations(['add_layer'])
  }
}

</script>
<style type="text/css" lang="scss">
.ct-tool-list {
  margin-top: 3px;

}

.ct-tool-list .el-button--mini {
  padding: 4px 10px;
}

</style>
